/**
* @author Cheng Liu
**/

#pragma once

#include <string>
#include <vector>
#include <map>

class TagFileBuffer{
public:
	TagFileBuffer();
	~TagFileBuffer();
public:
	void GetNearestTags(const char* prefix, std::vector<std::string> *wordList);
	void GetFieldTags(std::string field, std::vector<std::string> *wordList);
	void ReadTags(const char * filename);

private:
	std::vector<std::string> names;
	std::map<std::string, std::vector<std::string>> table;
};
